const mongoose = require("mongoose");

mongoose.connect("mongodb+srv://Test:Test123456@cluster0.2qzow.mongodb.net/Smart_Community").then(() => {
   console.log("数据库连接成功!!!   http://127.0.0.1:3000/");
}).catch(err => {
   console.log("数据库连接失败!!! " + err);
});

module.exports = mongoose;